//The contents of this file are subject to the Mozilla Public License Version 1.1
//(the "License"); you may not use this file except in compliance with the 
//License. You may obtain a copy of the License at http://www.mozilla.org/MPL/
//
//Software distributed under the License is distributed on an "AS IS" basis,
//WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 
//for the specific language governing rights and
//limitations under the License.
//
//The Original Code is "The Columba Project"
//
//The Initial Developers of the Original Code are Frederik Dietz and Timo Stich.
//Portions created by Frederik Dietz and Timo Stich are Copyright (C) 2003. 
//
//All Rights Reserved.
package org.columba.mail.gui.frame;

import org.columba.api.command.ICommandReference;
import org.columba.api.gui.frame.IFrameMediator;
import org.columba.api.selection.ISelectionListener;
import org.columba.mail.command.IMailFolderCommandReference;
import org.columba.mail.folderoptions.IFolderOptionsController;

/**
 * Adds selection handling methods to the {@link IFrameMediator}
 * 
 * @author fdietz
 */
public interface MailFrameMediator extends IFrameMediator {
	
	public IMailFolderCommandReference getTableSelection();

	public void setTableSelection(IMailFolderCommandReference r);
	
	public IMailFolderCommandReference getResourceTableSelection();

	public void setResourceTableSelection(IMailFolderCommandReference r);

	public IMailFolderCommandReference getTreeSelection();

	public void setTreeSelection(IMailFolderCommandReference r);
	
	public ICommandReference getResultTreeSelection();

	public void setResultTreeSelection(ICommandReference r);
	
	public IMailFolderCommandReference getSocialNetSelection();

	public void setSocialNetSelection(IMailFolderCommandReference r);

	public void registerTableSelectionListener(ISelectionListener l);
	
	public void registerResourceTableSelectionListener(ISelectionListener l);

	public void registerTreeSelectionListener(ISelectionListener l);
	
	public void registerSocialNetSelectionListener(ISelectionListener l);
	
	public void removeSocialNetSelectionListener(ISelectionListener l);

	public void removeTableSelectionListener(ISelectionListener l);

	public void removeTreeSelectionListener(ISelectionListener l);

	public IFolderOptionsController getFolderOptionsController();
}